<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Chestionar</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript">
            /*--------------------------------------------------------------
             *Enable text fields from the Question 11
             *--------------------------------------------------------------*/
            function enableFloorFields(){
                var valueCheck = document.getElementById('Q2b');
                var valueCheck2 = document.getElementById('Q2a');
                var disableValueOfNrEtaj = document.getElementById('nrEtaj');
                var disableValueOfTotalEtaje = document.getElementById('totalEtaje');
                var disableValueOfSubsol = document.getElementById('Q5a');
                var disableValueOfParter = document.getElementById('Q5b');
                var disableValueOfEtajulI = document.getElementById('Q5c');
                var disableValueOfEtajulII = document.getElementById('Q5d');
                var disableValueOfMansarda = document.getElementById('Q5e');

                if(valueCheck.checked){
                    disableValueOfNrEtaj.disabled = false
                    disableValueOfTotalEtaje.disabled = false;
                }else{
                    disableValueOfNrEtaj.blur();
                    disableValueOfNrEtaj.disabled = true;
                    disableValueOfTotalEtaje.blur();
                    disableValueOfTotalEtaje.disabled = true;
                    //                }
                }

                if(valueCheck2.checked){
                    disableValueOfSubsol.disabled = false;
                    disableValueOfParter.disabled = false;
                    disableValueOfEtajulI.disabled = false;
                    disableValueOfEtajulII.disabled = false;
                    disableValueOfMansarda.disabled = false;
                }else{
                    disableValueOfSubsol.blur();
                    disableValueOfSubsol.disabled = true;
                    disableValueOfParter.blur();
                    disableValueOfParter.disabled = true;
                    disableValueOfEtajulI.blur();
                    disableValueOfEtajulI.disabled = true;
                    disableValueOfEtajulII.blur();
                    disableValueOfEtajulII.disabled = true;
                    disableValueOfMansarda.blur();
                    disableValueOfMansarda.disabled = true;
                }

            }
            function enableKitchen(){
                var checkValue = document.getElementById('Q11a');
                var textField = document.getElementById('Q11aNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');
                   
                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableBathroom(){
                var checkValue = document.getElementById('Q11b');
                var textField = document.getElementById('Q11bNr')
                if(checkValue.checked){
                    textField.disabled = false;
                    textField.setAttribute('value', '');
                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    totalRooms();
                }
            }
            function enableToillet(){
                var checkValue = document.getElementById('Q11c');
                var textField = document.getElementById('Q11cNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableBedroom(){
                var checkValue = document.getElementById('Q11d');
                var textField = document.getElementById('Q11dNr')
                 if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enablePantry(){
                var checkValue = document.getElementById('Q11e');
                var textField = document.getElementById('Q11eNr')
                 if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableLivingroom(){
                var checkValue = document.getElementById('Q11f');
                var textField = document.getElementById('Q11fNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableChamber(){
                var checkValue = document.getElementById('Q11g');
                var textField = document.getElementById('Q11gNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableGuestroom(){
                var checkValue = document.getElementById('Q11h');
                var textField = document.getElementById('Q11hNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableHeatingroom(){
                var checkValue = document.getElementById('Q11i');
                var textField = document.getElementById('Q11iNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableCloset(){
                var checkValue = document.getElementById('Q11j');
                var textField = document.getElementById('Q11jNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableStoreroom(){
                var checkValue = document.getElementById('Q11k');
                var textField = document.getElementById('Q11kNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableBasement(){
                var checkValue = document.getElementById('Q11l');
                var textField = document.getElementById('Q11lNr')
               if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableGarage(){
                var checkValue = document.getElementById('Q11m');
                var textField = document.getElementById('Q11mNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableTerrace(){
                var checkValue = document.getElementById('Q11n');
                var textField = document.getElementById('Q11nNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableBalcony(){
                var checkValue = document.getElementById('Q11o');
                var textField = document.getElementById('Q11oNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            function enableLobby(){
                var checkValue = document.getElementById('Q11p');
                var textField = document.getElementById('Q11pNr')
                if(checkValue.checked){
                    textField.setAttribute('value', '');
                    textField.disabled = false;
                    checkValue.setAttribute('value', 'ON');

                }else{
                    textField.blur();
                    textField.disabled = true;
                    textField.value = 0;
                    checkValue.setAttribute('value', 'OFF');
                    totalRooms();
                }
            }
            /*---------------------------------------------------------------
             *Setting the value of the Q11k text field with the sum of the
             *eleventh text fields question who are enable above it
             *---------------------------------------------------------------*/
            function totalRooms(){
                var kitchen = parseInt(document.getElementById('Q11aNr').value);
                var bathroom = parseInt(document.getElementById('Q11bNr').value);
                var toillet = parseInt(document.getElementById('Q11cNr').value);
                var bedroom = parseInt(document.getElementById('Q11dNr').value);
                var pantry = parseInt(document.getElementById('Q11eNr').value);
                var livingroom = parseInt(document.getElementById('Q11fNr').value);
                var chamber = parseInt(document.getElementById('Q11gNr').value);
                var guestroom = parseInt(document.getElementById('Q11hNr').value);
                var heatingroom = parseInt(document.getElementById('Q11iNr').value);
                var closet = parseInt(document.getElementById('Q11jNr').value);
                var storeroom = parseInt(document.getElementById('Q11kNr').value);
                var basement = parseInt(document.getElementById('Q11lNr').value);
                var garage = parseInt(document.getElementById('Q11mNr').value);
                var terrace = parseInt(document.getElementById('Q11nNr').value);
                var balcony = parseInt(document.getElementById('Q11oNr').value);
                var lobby = parseInt(document.getElementById('Q11pNr').value);
                var sum = parseInt(0);
                var totalTextField = document.getElementById('Q11q');
                sum = kitchen+bathroom+toillet+bedroom+pantry+livingroom+chamber+guestroom+
                    +heatingroom+closet+storeroom+basement+garage+terrace+balcony+lobby;
                totalTextField.value = sum;
            }
            /*---------------------------------------------------------------
             *Shows the current under the disclaimer
             *----------------------------------------------------------------*/
            function currentDate(){
                var timeLabel = document.getElementById('DataChestionar');
                var currentDate = new Date();
                timeLabel.value = currentDate;
            }
            /*-------------------------------------------------------------
             *Set First Question selections values
             *-------------------------------------------------------------*/
            function setUrban(){
                var urbanValue = document.getElementById('Q1a');
                var ruralValue = document.getElementById('Q1b');
                if(urbanValue.checked){
                    urbanValue.value = "a";
                    ruralValue.value = "";
                    console.log("Urban value " + urbanValue.value);
                    console.log("Rural value " + ruralValue.value);
                    //alert("Checked value " + urbanValue.value);
                }
                
            }
            function setRural(){
                var urbanValue = document.getElementById('Q1a');
                var ruralValue = document.getElementById('Q1b');
                if(ruralValue.checked){
                    urbanValue.value = "";
                    ruralValue.value = "b";
                    console.log("Rural value " + ruralValue.value);
                    console.log("Urban value " + urbanValue.value);
                    //alert("Checked value " + urbanValue.value);
                }
            }
            /*---------------------------------------------------------------
             *Set Second Quesion selections values
             *---------------------------------------------------------------*/
            function setLocuintaIndividuala(){
                var locuintaIndividuala = document.getElementById('Q2a');
                var locuintaCuMaiMulteApartamente = document.getElementById('Q2b');
                if(locuintaIndividuala.checked){
                    locuintaIndividuala.value = "a";
                    locuintaCuMaiMulteApartamente.value = "";
                }
            }
            function setLocuintaCuMaiMulteApartamente(){
                 var locuintaIndividuala = document.getElementById('Q2a');
                var locuintaCuMaiMulteApartamente = document.getElementById('Q2b');
                if(locuintaCuMaiMulteApartamente.checked){
                    locuintaIndividuala.value = "";
                    locuintaCuMaiMulteApartamente.value = "b";
                }
            }
            /*------------------------------------------------------------
             *Set Third Question selection values
             *------------------------------------------------------------*/
            function setThirdQuestionValues(checkValue){
                if(checkValue.checked){
                    checkValue.value = "Da";
                }else{
                    checkValue.value = "Nu";
                }
                console.log("Check value third question" + checkValue.value)    
            }
            /*--------------------------------------------------------------
             *Set Sixth Question selections values
             *--------------------------------------------------------------*/
            function setInterval1AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval1.checked){
                    interval1.value = "a";
                    interval2.value = "";
                    interval2.value = "";
                    interval2.value = "";
                    interval3.value = "";
                    interval4.value = "";
                    interval5.value = "";
                    interval6.value = "";
                    interval7.value = "";
                    interval8.value = "";
                }
            }
            function setInterval2AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval2.checked){
                    interval1.value = "";
                    interval2.value = "b";
                    interval3.value = "";
                    interval4.value = "";
                    interval5.value = "";
                    interval6.value = "";
                    interval7.value = "";
                    interval8.value = "";
                }
            }
            function setInterval3AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval3.checked){
                    interval1.value = "";
                    interval2.value = "";
                    interval3.value = "c";
                    interval4.value = "";
                    interval5.value = "";
                    interval6.value = "";
                    interval7.value = "";
                    interval8.value = "";
                }
            }
            function setInterval4AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval4.checked){
                    interval1.value = "";
                    interval2.value = "";
                    interval3.value = "";
                    interval4.value = "d";
                    interval5.value = "";
                    interval6.value = "";
                    interval7.value = "";
                    interval8.value = "";
                }
            }
            function setInterval5AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval5.checked){
                    interval1.value = "";
                    interval2.value = "";
                    interval3.value = "";
                    interval4.value = "";
                    interval5.value = "e";
                    interval6.value = "";
                    interval7.value = "";
                    interval8.value = "";
                }
            }
            function setInterval6AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval6.checked){
                    interval1.value = "";
                    interval2.value = "";
                    interval3.value = "";
                    interval4.value = "";
                    interval5.value = "";
                    interval6.value = "f";
                    interval7.value = "";
                    interval8.value = "";
                }
            }
            function setInterval7AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval7.checked){
                    interval1.value = "";
                    interval2.value = "";
                    interval3.value = "";
                    interval4.value = "";
                    interval5.value = "";
                    interval6.value = "";
                    interval7.value = "g";
                    interval8.value = "";
                }
            }
            function setInterval8AnConstructie(){
                var interval1 = document.getElementById('Q6a');
                var interval2 = document.getElementById('Q6b');
                var interval3 = document.getElementById('Q6c');
                var interval4 = document.getElementById('Q6d');
                var interval5 = document.getElementById('Q6e');
                var interval6 = document.getElementById('Q6f');
                var interval7 = document.getElementById('Q6g');
                var interval8 = document.getElementById('Q6h');
                if(interval8.checked){
                    interval1.value = "";
                    interval2.value = "";
                    interval3.value = "";
                    interval4.value = "";
                    interval5.value = "";
                    interval6.value = "";
                    interval7.value = "";
                    interval8.value = "h";
                }
            }
            /*------------------------------------------------------------------
             *Set Selection Values
             *----------------------------------------------------------------*/
             function setSelectionValues(checkValue){
                 if(checkValue.checked){
                     checkValue.value = "Da";
//                     console.log("Change value from Nu to " + checkValue.value);
                 }else{
                     checkValue.value = "Nu";
//                     console.log("Change value from Da to " + checkValue.value);
                 }
             }

             function setTVUsage(checkValue){
                 if(checkValue.checked){
                     checkValue.value = checkValue.id;
                 }
             }
             function setComputerUsage(checkValue){
                 if(checkValue.checked){
                     checkValue.value = checkValue.id;
                 }
//                 switch(checkValue.name){
//                     case 'Q17b1' : checkValue.value="b1";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                     case 'Q17b2' : checkValue.value="b2";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                     case 'Q17b3' : checkValue.value="b3";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                     case 'Q17b4' : checkValue.value="b4";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                     case 'Q17b5' : checkValue.value="b5";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                     case 'Q17b6' : checkValue.value="b6";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                     case 'Q17b7' : checkValue.value="b7";
//                         console.log("Check Value " + checkValue.value);
//                     break;
//                 }
             }


             function setBecuriEcologice(checkValue){
                 if (checkValue.checked){
                     checkValue.value = "a";
                 }else{
                     checkValue.calue = "";
                 }
             }
             function unsetBecuriEcologice(checkValue){
                 if (checkValue.checked){
                     checkValue.value = "b";
                 }else{
                     checkValue.calue = "";
                 }
             }


              

        </script>
    </head>
    <body onload="currentDate()">
        <div id="content" style="margin: 0 auto 0 auto; width: 1000px;">
            <div id="leftheader" style="width: 50%; float: left" >
                <p>Institutul de cercetare E-Austria Timisoara</p>
                <p>Universitatea de Vest din Timisoara  </p>
            </div>
            <div id="rightheader" style="width: 50%; float: left; text-align: center" >
                <img alt="Dehems" src="HtmlResources/Pictures/dehems.png">
                <p><a href="http://www.dehems.eu"">www.dehems.eu</a></p>
            </div>
            <div id="title" style="float: left; text-align: center; width: 1000px">
                <h1>Chestionar</h1>
            </div>
            <div id="body" style="float: left">
                <form name="chestionar" id="chestionar" method="post" action="http://localhost:8080/RuledApp/NewTestServlet">
                    <div id="leftBody" style="width: 500px; float: left">
                        <table>
                            <tbody>
                                <tr>
                                    <td>Nume</td>
                                    <td><input type="text" id="name" name="name" size="40"></td>
                                </tr>
                                <tr>
                                    <td>Prenume</td>
                                    <td><input type="text" name="surname" size="40"></td>
                                </tr>
                                <tr>
                                    <td>Adresa</td>
                                    <td><textarea cols="32" name="adresa" rows="4"></textarea></td>
                                </tr>
                                <tr>
                                    <td>Numar de telefon</td>
                                    <td><input type="text" name="telefon" size="40"></td>
                                </tr>
                                <tr>
                                    <td>E-mail</td>
                                    <td><input type="text" name="mail" size="40"></td>
                                </tr>
                                <tr>
                                    <td>CNP</td>
                                    <td><input type="text" name="cnp" size="40"></td>
                                </tr>
                            </tbody>
                        </table>
                        <ol>
                            <li id="firstQuestion">Localizarea locuinṭei ȋn mediul:
                                <ol type="a">
                                    <li>urban
                                        <input type="radio" id="Q1a" name="Q1" value="" onchange="setUrban()"/>
                                    </li>
                                    <li>rural
                                        <input type="radio" id="Q1b" name="Q1" value="" onchange="setRural()"/>
                                    </li>
                                </ol>
                            </li>
                            <li id="secondQuestion"> Tipul locuinṭei:
                                <ol type="a">
                                    <li>individuala(casa si curte)
                                        <input type="radio" id="Q2a" name="Q2" value="" onclick="enableFloorFields()" onchange="setLocuintaIndividuala()"/>
                                    </li>
                                    <li>cu mai multe apartamente(bloc/vila)
                                        <input type="radio" id="Q2b" name="Q2" value=""  onclick="enableFloorFields()" onchange="setLocuintaCuMaiMulteApartamente()"/>
                                    </li>
                                </ol>
                            </li>
                            <li id="thirdQuestion"> Este aceasta locuinta utilizata ca:
                                <ol type="a">
                                    <li>principala
                                        <input type="checkbox" id="Q3a" name="Q3a" value="Nu" onchange="setThirdQuestionValues(this)"/>
                                    </li>
                                    <li>birou / loc de munca / atelier
                                        <input type="checkbox" id="Q3b" name="Q3b" value="Nu" onchange="setThirdQuestionValues(this)"/>
                                    </li>
                                    <li>casa de vacanta
                                        <input type="checkbox" id="Q3c" name="Q3c" value="Nu" onchange="setThirdQuestionValues(this)"/>
                                    </li>
                                    <li>ocazional
                                        <input type="checkbox" id="Q3d" name="Q3d" value="Nu" onchange="setThirdQuestionValues(this)"/>
                                    </li>
                                </ol>
                            </li>
                            <li id="fourthQuestion">
                                Etajul
                                <input type="text" id="nrEtaj" name="nrEtaj" value="" disabled="true" size="4px">
                                din totalul de etaje
                                <input type="text" id="totalEtaje" name="totalEtaje" value="" size="4px" disabled="true" />
                            </li>
                            <li id="fifthQuestion"> Numărul de camere situate la:
                                <ol type="a">
                                    <li>
                                        subsol
                                        <input type="text" id="Q5a" name="Q5a" value="" disabled="true" size="4px">
                                    </li>
                                    <li>
                                        parter
                                        <input type="text" id="Q5b" name="Q5b" value="" disabled="true" size="4px">
                                    </li>
                                    <li>
                                        etajul I
                                        <input type="text" id="Q5c" name="Q5c" value="" disabled="true" size="4px">
                                    </li>
                                    <li>
                                        etajul II
                                        <input type="text" id="Q5d" name="Q5d" value="" disabled="true" size="4px">
                                    </li>
                                    <li>
                                        mansarda
                                        <input type="text" id="Q5e" name="Q5e" value="" disabled="true" size="4px">
                                    </li>

                                </ol>
                            </li>
                            <li id="sixthQuestion"> Anul constructie:
                                <ol type="a">
                                    <li>
                                        Inainte de 1940
                                        <input type="radio" id="Q6a" name="Q6" value="" size="4" onchange="setInterval1AnConstructie()"/>
                                    </li>
                                    <li>
                                        1940-1950
                                        <input type="radio" id="Q6b" name="Q6" value="" size="4" onchange="setInterval2AnConstructie()"/>
                                    </li>
                                    <li>
                                        1950-1960
                                        <input type="radio" id="Q6c" name="Q6" value="" size="4" onchange="setInterval3AnConstructie()"/>
                                    </li>
                                    <li>
                                        1960-1970
                                        <input type="radio" id="Q6d" name="Q6" value="" size="4" onchange="setInterval4AnConstructie()"/>
                                    </li>
                                    <li>
                                        1970-1980
                                        <input type="radio" id="Q6e" name="Q6" value="" size="4" onchange="setInterval5AnConstructie()"/>
                                    </li>
                                    <li>
                                        1980-1990
                                        <input type="radio" id="Q6f" name="Q6" value="" size="4" onchange="setInterval6AnConstructie()"/>
                                    </li>
                                    <li>
                                        1990-2000
                                        <input type="radio" id="Q6g" name="Q6" value="" size="4" onchange="setInterval7AnConstructie()"/>
                                    </li>
                                    <li>
                                        2000-2010
                                        <input type="radio" id="Q6h" name="Q6" value="" size="4" onchange="setInterval8AnConstructie()"/>
                                    </li>
                                </ol>
                            </li>
                            <li id="seventhQuestion">
                                Numărul de locuitori/membri ai locuinṭei:
                                <input type="text" name="Q7" value="" size="4" />
                            </li>
                            <li id="eighthQuestion">
                                Suprafaṭa (ȋncălzită şi iluminată) a locuinṭei :
                                <input type="text" name="Q8" value="" size="4" /> m<sup>2</sup>
                            </li>
                            <li id="ninthQuestion">
                                Ȋnălṭimea camerelor din locuinṭă:
                                <input type="text" name="Q9" value="" size="4" /> m
                            </li>
                            <li id="tenthQuestion">
                                Pereṭii locuinṭei:
                                <ol type="a">
                                    <li>
                                        zidărie din cărămidă:
                                        <input type="checkbox" id="Q10a" name="Q10a" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        zidarie din poroterm
                                        <input type="checkbox" id="Q10b" name="Q10b" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        zidarie B.C.A
                                        <input type="checkbox" id="Q10c" name="Q10c" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        pereti din beton izolat termic
                                        <input type="checkbox" id="Q10d" name="Q10d" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        zidarie din boltar de beton
                                        <input type="checkbox" id="Q10e" name="Q10e" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        pereti de lemn
                                        <input type="checkbox" id="Q10f" name="Q10f" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        pereti de sticla
                                        <input type="checkbox" id="Q10g" name="Q10g" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        zidarie din piatra
                                        <input type="checkbox" id="Q10h" name="Q10h" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        pereti din vaiuga/chirpici
                                        <input type="checkbox" id="Q10i" name="Q10i" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        pereti din lemn si vaiuga/chirpici
                                        <input type="checkbox" id="Q10j" name="Q10j" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        alt tip:
                                        <input type="text" id="Q10k" name="Q10k" value="" />
                                    </li>
                                </ol>
                            </li>
                            <li id="eleventhQuestion">
                                Componenṭa locuinṭei (plus anexe):
                                <ol type="a">
                                    <li>
                                        bucatarie
                                        <input type="checkbox" id="Q11a" name="Q11a" value="" onclick="enableKitchen()" />
                                        ; Nr. de bucatarii
                                        <input type="text" id="Q11aNr" name="Q11aNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        baie
                                        <input type="checkbox" id="Q11b" name="Q11b" value="" onclick="enableBathroom()"/>
                                        ; Nr. de bai
                                        <input type="text" id="Q11bNr" name="Q11bNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        wc de serviciu
                                        <input type="checkbox" id="Q11c" name="Q11c" value="" onclick="enableToillet()"/>
                                        ; Nr de wc-uri
                                        <input type="text" id="Q11cNr" name="Q11cNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        dormitoare
                                        <input type="checkbox" id="Q11d" name="Q11d" value="" onclick="enableBedroom()"/>
                                        ; Nr. de dormitoare
                                        <input type="text" id="Q11dNr" name="Q11dNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        camara
                                        <input type="checkbox" id="Q11e" name="Q11e" value="" onclick="enablePantry()"/>
                                        ; Nr. de camari
                                        <input type="text" id="Q11eNr" name="Q11eNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        sufragerie/living
                                        <input type="checkbox" id="Q11f" name="Q11f" value="" onclick="enableLivingroom()"/>
                                        ; Nr. de sufragerii/living-uri
                                        <input type="text" id="Q11fNr" name="Q11fNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        birou
                                        <input type="checkbox" id="Q11g" name="Q11g" value="" onclick="enableChamber()"/>
                                        ; Nr. de birouri
                                        <input type="text" id="Q11gNr" name="Q11gNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        camera de oaspeti
                                        <input type="checkbox" id="Q11h" name="Q11h" value="" onclick="enableGuestroom()"/>
                                        ; Nr. camere:
                                        <input type="text" id="Q11hNr" name="Q11hNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        camera termica
                                        <input type="checkbox" id="Q11i" name="Q11i" value="" onclick="enableHeatingroom()"/>
                                        ; Nr. camere
                                        <input type="text" id="Q11iNr" name="Q11iNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        debara
                                        <input type="checkbox" id="Q11j" name="Q11j" value="" onclick="enableCloset()"/>
                                        ; Nr. debarale
                                        <input type="text" id="Q11jNr" name="Q11jNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        magazie
                                        <input type="checkbox" id="Q11k" name="Q11k" value="" onclick="enableStoreroom()"/>
                                        ; Nr. magazii
                                        <input type="text" id="Q11kNr" name="Q11kNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        pivnita
                                        <input type="checkbox" id="Q11l" name="Q11l" value="" onclick="enableBasement()"/>
                                        ; Nr. pivnite
                                        <input type="text" id="Q11lNr" name="Q11lNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        garaj
                                        <input type="checkbox" id="Q11m" name="Q11m" value="" onclick="enableGarage()"/>
                                        ; Nr. garaje
                                        <input type="text" id="Q11mNr" name="Q11mNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        terasa
                                        <input type="checkbox" id="Q11n" name="Q11n" value="" onclick="enableTerrace()"/>
                                        ; Nr. terase
                                        <input type="text" id="Q11nNr" name="Q11nNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        balcon
                                        <input type="checkbox" id="Q11o" name="Q11o" value="" onclick="enableBalcony()"/>
                                        ; Nr. balcoane
                                        <input type="text" id="Q11oNr" name="Q11oNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        hol
                                        <input type="checkbox" id="Q11p" name="Q11p" value="" onclick="enableLobby()"/>
                                        ; Nr. holuri
                                        <input type="text" id="Q11pNr" name="Q11pNr" value="0" size="4" disabled="true" onchange="totalRooms()"/>
                                    </li>
                                    <li>
                                        Total:
                                        <input type="text" id="Q11q" name="Q11q" disabled="true"  value="0" size="4" onclick="totalRooms()"/>
                                    </li>
                                </ol>
                            </li>
                        </ol>
                    </div>
                    <div id="rightBody" style="width: 500px; float: left">
                        <ol start="12">
                            <li id="twelfthQuestion"> Tipul sistemului de incalzire:
                                <ol type="a">
                                    <li>
                                        incalzire locala cu sobe
                                        <input type="checkbox" id="Q12a" name="Q12a" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        incalzire centrala cu corpuri statice(calorifere)
                                        <ol type="i">
                                            <li>
                                                electrice
                                                <input type="checkbox" id="Q12b1" name="Q12b1" value="Nu" onchange="setSelectionValues(this)"/>
                                            </li>
                                            <li>
                                                cu apa calda
                                                <input type="checkbox" id="Q12b2" name="Q12b2" value="Nu" onchange="setSelectionValues(this)"/>
                                            </li>
                                        </ol>
                                    </li>
                                    <li>
                                        incalzire centrala cu aer cald(aparat de climatizare)
                                        <input type="checkbox" id="Q12c" name="Q12c" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        incalzire centrala cu plansee incalzitoare
                                        <input type="checkbox" id="Q12d" name="Q12d" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        incalzire cu aeroterma
                                        <input type="checkbox" id="Q12e" name="Q12e" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        alt sistem de incalzire
                                        <input type="text" id="Q12f" name="Q12f" value="" />
                                    </li>
                                </ol>
                            </li>
                            <li id="thirteenthQuestion">
                                Tipul sistemului de preparare a apei calde :
                                <ol type="a">
                                    <li>
                                        din sursa centralizata
                                        <input type="checkbox" id="Q13a" name="Q13a" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        centrala termica proprie
                                        <input type="checkbox" id="Q13b" name="Q13b" value="Nu"  onchange="setSelectionValues(this)"/>
                                    <li>
                                        boiler cu acumulare
                                        <input type="checkbox" id="Q13c" name="Q13c" value="Nu"  onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        preparare locala cu aparate de tip instant(ptr apa calda menajera)
                                        <input type="checkbox" id="Q13d" name="Q13d" value="Nu"  onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        preparare locala pe plita
                                        <input type="checkbox" id="Q13e" name="Q13e" value="Nu"  onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        alt sistem de preparare a apei calde menajere:
                                        <input type="text" id="Q13f" name="Q13f" value="" size="16"  />
                                    </li>
                                </ol>

                            </li>
                            <li id="fourteenthQuestion">
                                Sistemul de iluminat şi de alimentare a aparaturii de uz casnic:
                                <ol type="a">
                                    <li>
                                        electric
                                        <input type="checkbox" id="Q14a" name="Q14a" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        gaz
                                        <input type="checkbox" id="Q14b" name="Q14b" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                    <li>
                                        combustibili lichid(petrol)
                                        <input type="checkbox" id="Q14c" name="Q14c" value="Nu" onchange="setSelectionValues(this)"/>
                                    </li>
                                </ol>

                            </li>
                            <li id="fifteenthQuestion">
                                Date despre locuitori:
                                <ol type="a">
                                    <li>
                                        angajati(nr. de anagajati)
                                        <input type="text" id="Q15a" name="Q15a" value="" size="4" />
                                    </li>
                                    <li>
                                        copii(nr. de copii)
                                        <input type="text" id="Q15b" name="Q15b" value="" size="4" />
                                    </li>
                                    <li>
                                        pensionari(nr. de pensionari)
                                        <input type="text" id="Q15c" name="Q15c" value="" size="4" />
                                    </li>
                                    <li>
                                        someri(nr. de someri)
                                        <input type="text" id="Q15d" name="Q15d" value="" size="4" />
                                    </li>
                                    <li>
                                        persoane fara ocupatie
                                        <input type="text" id="Q15e" name="Q15e" value="" size="4" />
                                    </li>
                                </ol>

                            </li>
                            <li id="sixteenthQuestion">
                                Folositi becuri ecologice:
                                <ol type="a">
                                    <li>
                                        Da
                                        <input type="radio" id="Q16a" name="Q16" value="" onchange="setBecuriEcologice(this)"/>
                                    </li>
                                    <li>
                                        Nu
                                        <input type="radio" id="Q16b" name="Q16" value="" onchange="unsetBecuriEcologice(this)"/>
                                    </li>
                                </ol>
                            </li>
                            <li id="seventeenthQuestion">
                                Cat de des folositi:
                                <ol type="a">
                                    <li>
                                        televizorul:
                                        <ol type="i">
                                            <li>
                                                0-2 ore
                                                <input type="radio" id="a1" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                2-4 ore
                                                <input type="radio" id="a2" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                4-6 ore
                                                <input type="radio" id="a3" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                6-8 ore
                                                <input type="radio" id="a4" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                8-10 ore
                                                <input type="radio" id="a5" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                10-12 ore
                                                <input type="radio" id="a6" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                12-14 ore
                                                <input type="radio" id="a7" name="Q17a" value="" onchange="setTVUsage(this)" />
                                            </li>
                                            <li>
                                                mai mult:
                                                <input type="text" id="Q17a8" name="Q17a" value="" size="4" />
                                            </li>
                                        </ol>
                                    </li>
                                    <li>
                                        calculatorul:
                                        <ol type="i">
                                            <li>
                                                0-2 ore
                                                <input type="radio" id="b1" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                2-4 ore
                                                <input type="radio" id="b2" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                4-6 ore
                                                <input type="radio" id="b3" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                6-8 ore
                                                <input type="radio" id="b4" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                8-10 ore
                                                <input type="radio" id="b5" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                10-12 ore
                                                <input type="radio" id="b6" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                12-14 ore
                                                <input type="radio" id="b7" name="Q17b" value="" onchange="setComputerUsage(this)" />
                                            </li>
                                            <li>
                                                mai mult:
                                                <input type="text" id="Q17b8" name="Q17b8" value="" size="4" />
                                            </li>

                                        </ol>
                                    </li>
                                </ol>

                            </li>
                            <li id="eighteenthQuestion">
                                Aparatele de uz casnic pe care le utilizaṭi cel mai des sunt:
                                <ol type="a">
                                    <li>
                                        aparatul de aer conditionat
                                        <input type="checkbox" id="Q18a" name="Q18a" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        ventilatorul
                                        <input type="checkbox" id="Q18b" name="Q18b" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        cuptorul cu microunde
                                        <input type="checkbox" id="Q18c" name="Q18c" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        aragazul
                                        <input type="checkbox" id="Q18d" name="Q18d" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        mixerul/blenderul
                                        <input type="checkbox" id="Q18e" name="Q18e" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        sandwich maker-ul
                                        <input type="checkbox" id="Q18f" name="Q18f" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        prajitorul de paine
                                        <input type="checkbox" id="Q18g" name="Q18g" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        filtrul de cafea
                                        <input type="checkbox" id="Q18h" name="Q18h" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        frigiderul
                                        <input type="checkbox" id="Q18i" name="Q18i" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        masina de spalat
                                        <input type="checkbox" id="Q18j" name="Q18j" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        masina de spalat vase
                                        <input type="checkbox" id="Q18k" name="Q18k" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        placa de intins parul/ondulatorul de par
                                        <input type="checkbox" id="Q18l" name="Q18l" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        televizorul
                                        <input type="checkbox" id="Q18m" name="Q18m" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        calculatorul(PC/laptop)
                                        <input type="checkbox" id="Q18n" name="Q18n" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        imprimanta/scannerul
                                        <input type="checkbox" id="Q18o" name="Q18o" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        dvd player-ul
                                        <input type="checkbox" id="Q18p" name="Q18p" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        fierul de calcat
                                        <input type="checkbox" id="Q18q" name="Q18q" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        uscatorul de par
                                        <input type="checkbox" id="Q18r" name="Q18r" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        aspiratorul
                                        <input type="checkbox" id="Q18s" name="Q18s" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                    <li>
                                        expresorul de cafea
                                        <input type="checkbox" id="Q18t" name="Q18t" value="Nu" onchange="setSelectionValues(this)" />
                                    </li>
                                </ol>

                            </li>
                            <li id="nineteenthQuestion">
                                Sunteti multumit de sistemul dumneavoastra de incalzire:
                                <ol type="a">
                                    <li>
                                        Da
                                        <input type="radio" id="Q19a" name="Q19" value="Nu" onchange="setBecuriEcologice(this)" />
                                    </li>
                                    <li>
                                        Nu
                                        <input type="radio" id="Q19b" name="Q19" value="Nu" onchange="unsetBecuriEcologice(this)" />
                                    </li>
                                </ol>

                            </li>
                        </ol>

                    </div>
                    <div id="bodySubmitButtonArea" style="float: left; text-align: center; width: 1000px">
                        <input type="submit" id="submitButton" name="submitButton" value="Submit" />
                    </div>
                    </form>
                    <div align="footerContent" style="float: left; text-align: left; width: 1000px">
                        <p>
                            Prin prezenta ȋmi dau acordul ca S.C. ELECTRICA S.A, S.C. ENEL Distributie S.A, S.C. E.ON Gaz S.A, AQUATIM S.A,  AQUACARAS S.A,
                            să elibereze date despre  consumul meu anual de energie electrică, gaz şi apă ȋn de la 1 ianuarie 2009 si pana in prezent.
                        </p>
                        <p id="currentDate" align="center">
                            <input type="text" id="DataChestionar" name="DataChestionar" value="" size="10" disabled="disabled"  />
                        </p>
                    </div>
            </div>

        </div>
    </body>
</html>
